import store from '../store/index.js'
// 拼团详情数据
const groupDetailDao = {
	// 获取拼团商品数据
	getGroupItem(sid){
		let groupItem = {
			groupNum:4,
			price:75.00,
			title:'【仅限深圳同城地区】新鲜水果上市 大荔冬枣  5斤/箱 枣香枣脆 等你抢购',
			standard:'规格一',
			thumb:'https://img.yzcdn.cn/vant/ipad.jpeg',
			condition:'拼团中',
			cutdown:30 * 60 * 60 * 1000,
			joinUser:[
				{
					id:1,
					isLeader:true,
					thumb:'https://img.yzcdn.cn/vant/ipad.jpeg'
				},
				{
					id:2,
					isLeader:false,
					thumb:'https://img.yzcdn.cn/vant/ipad.jpeg'
				}
			]
		}
		
		return groupItem;
	},
	getGroupWay(){
		let groupWay = [
			{
				id:1,
				icon:'friends-o',
				title:'支付开团/参团'
			},
			{
				id:2,
				icon:'friends-o',
				title:'邀请好友参团'
			},
			{
				id:3,
				icon:'friends-o',
				title:'人满成团'
			}
		]
		return groupWay;
	},
	getRecommend(){
		let recommendList  = store.state.commodities;
		
		return recommendList;
	}
}

export default groupDetailDao;